package com.yvdelx.cyclowomen.utility;

import android.util.Log;

/**
 * Utility for logs
 * Created by ydelvaux on 22/02/14.
 */
public class LogUtility {

    public static Boolean isDebug() {
        return false; //TODO : Change the data to false before publish on the play store
    }

    /**
     * Log debug
     *
     * @param cl      Class
     * @param message String
     */
    public static void debug(Class cl, String message) {
        Log.d(cl.getName(), message);
    }

    /**
     * Log debug
     *
     * @param object  Object
     * @param message String
     */
    public static void debug(Object object, String message) {
        debug(object.getClass(), message);
    }

    /**
     * Log Exception
     *
     * @param cl      Class
     * @param message Message
     * @param ex      Exception
     */
    public static void error(Class cl, String message, Exception ex) {
        Log.e(cl.getName(), message, ex);
    }
}
